package com.project.bean;

import java.time.LocalDate;

/***
 * 项目管理进度实体类
 */
public class PProgressBean {
    /**项目管理编号*/
    private int id;
    private LocalDate startDate = LocalDate.now();
    private String endDate ="未完成";
    /**员工*/
    private EmployeeBean employeeBean;
    /**项目*/
    private ProjectBean projectBean;

    public PProgressBean() {
    }

    public PProgressBean(int eId, int pId) {
        this.employeeBean = new EmployeeBean();
        this.employeeBean.setId(eId);
        this.projectBean = new ProjectBean();
        this.projectBean.setId(pId);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public EmployeeBean getEmployeeBean() {
        return employeeBean;
    }

    public void setEmployeeBean(EmployeeBean employeeBean) {
        this.employeeBean = employeeBean;
    }

    public ProjectBean getProjectBean() {
        return projectBean;
    }

    public void setProjectBean(ProjectBean projectBean) {
        this.projectBean = projectBean;
    }

    @Override
    public String toString() {
        return "PProgressBean{" +
                "id=" + id +
                ", startDate=" + startDate +
                ", endDate='" + endDate + '\'' +
                ", employeeBean=" + employeeBean +
                ", projectBean=" + projectBean +
                "}\n";
    }
}
